package inventory.daoImplementer;

import java.sql.SQLException;

import dbhandelling.Crude;
import dto.IssueSlip;
import inventory.daoInterface.IssueSlipDao;

public class IssueSlipImplementor extends Crude implements IssueSlipDao
{

	@Override
	public void add(IssueSlip issue) throws SQLException 
	{
		String[] values=new String[7];
		values[0]=issue.getSlipNo()+"";
		values[1]=issue.getIssueNo()+"";
		values[2]=issue.getNameCont();
		values[3]=issue.getNameOfSiteEngg();
		values[4]=issue.getIssueFor();
		values[5]=issue.getBldgNo();
		values[6]=issue.getFlatNo();
		insert("IssueSlip", values);
	}

	@Override
	public void update(IssueSlip issue) {
		
		
	}

	@Override
	public void delete(IssueSlip issue) {
		this.delete("IssueSlip", "slipNo", issue.getSlipNo()+"");
		
	}

	@Override
	public IssueSlip retreive(String conditionField, String ConditionValue) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public IssueSlip[] retreiveArray(String conditionField,
			String ConditionValue) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public IssueSlip[] retreiveAll() {
		// TODO Auto-generated method stub
		return null;
	}

}
